// Filter.h: interface for the CFilter class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FILTER_H__0DDBF27E_38B4_4213_A937_9080665618FE__INCLUDED_)
#define AFX_FILTER_H__0DDBF27E_38B4_4213_A937_9080665618FE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CFilter  
{
public:
	void AddSearchColumn(CString strKeyWord);
	void SetGetColumns(const CStringArray &arrsGetColumns);
	void SetSearchColumns(CString strColumn);
	void SetSearchKeyWords(CString strKeyWords);
	void SetSearchKeyWords(const CStringArray &arrsKeyWords);
	void AddSearchKeyWord(CString strKeyWord);
	CFilter();
	CFilter(CString strSearchTable, CString strSearchColumns, CString strGetColumns, CString strKeyWords, CString strFilter);
	virtual ~CFilter();
	CFilter& operator =(const CFilter &filter);
	operator == (const CFilter& filter);
	operator != (const CFilter& filter);

	CString m_strSearchTable;
	CStringArray m_arrsSearchColumns;
	CStringArray m_arrsGetColumns;
	CStringArray m_arrsSearchKeyWords;
	CString m_strFilter;
private:
	void SplitBySpace(const CString &str, CStringArray &arrsItems);
};

#endif // !defined(AFX_FILTER_H__0DDBF27E_38B4_4213_A937_9080665618FE__INCLUDED_)
